package week5;

import java.util.Scanner;

import static week5.isPalindrome.isPalindrome;

public class q3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数 ");
        int n = sc.nextInt();

        boolean isPalindrome = isPalindrome(n);

        if (isPalindrome) {
            System.out.println(n + " 是回文数");
        } else {
            System.out.println(n + " 不是回文数");
        }

    }

}


